<?

	if (postdata('persontype'))
		return '/process'; 

	switch (param('reg')) {
		case 'p':
			return '/reg-p'; 

		case 'u':
			return '/reg-u'; 

		case 'o':
			return '/reg-o';
		
		case 'c':
			return '/reg-c';

		case 'sent':
			return '/reg-sent';
	}

	switch (param('confirm')) {
		case 'mail':
			return '/confirm-mail';
		case 'newlogin':
			return '/confirm-newlogin'; 
		case 'newpass':
			return '/confirm-newpass'; 
	}

	switch (param('recover')) {
		case 'password':
			return '/recover-password'; 
	}

	switch (param('change')) {
		case 'password':
			return '/change-password'; 
		case 'login':
			return '/change-login'; 
	}
		
	return '';
